package com.ruoyi.ms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ms.mapper.MsOrderIncomeMapper;
import com.ruoyi.ms.domain.MsOrderIncome;
import com.ruoyi.ms.service.IMsOrderIncomeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 妙手虾皮订单收入明细Service业务层处理
 * 
 * @author chdx
 * @date 2022-12-06
 */
@Service
public class MsOrderIncomeServiceImpl implements IMsOrderIncomeService 
{
    @Autowired
    private MsOrderIncomeMapper msOrderIncomeMapper;

    /**
     * 查询妙手虾皮订单收入明细
     * 
     * @param orderIncomeId 妙手虾皮订单收入明细主键
     * @return 妙手虾皮订单收入明细
     */
    @Override
    public MsOrderIncome selectMsOrderIncomeByOrderIncomeId(Long orderIncomeId)
    {
        return msOrderIncomeMapper.selectMsOrderIncomeByOrderIncomeId(orderIncomeId);
    }

    /**
     * 查询妙手虾皮订单收入明细列表
     * 
     * @param msOrderIncome 妙手虾皮订单收入明细
     * @return 妙手虾皮订单收入明细
     */
    @Override
    public List<MsOrderIncome> selectMsOrderIncomeList(MsOrderIncome msOrderIncome)
    {
        return msOrderIncomeMapper.selectMsOrderIncomeList(msOrderIncome);
    }

    /**
     * 新增妙手虾皮订单收入明细
     * 
     * @param msOrderIncome 妙手虾皮订单收入明细
     * @return 结果
     */
    @Override
    public int insertMsOrderIncome(MsOrderIncome msOrderIncome)
    {
        return msOrderIncomeMapper.insertMsOrderIncome(msOrderIncome);
    }

    /**
     * 修改妙手虾皮订单收入明细
     * 
     * @param msOrderIncome 妙手虾皮订单收入明细
     * @return 结果
     */
    @Override
    public int updateMsOrderIncome(MsOrderIncome msOrderIncome)
    {
        return msOrderIncomeMapper.updateMsOrderIncome(msOrderIncome);
    }

    /**
     * 批量删除妙手虾皮订单收入明细
     * 
     * @param orderIncomeIds 需要删除的妙手虾皮订单收入明细主键
     * @return 结果
     */
    @Override
    public int deleteMsOrderIncomeByOrderIncomeIds(String orderIncomeIds)
    {
        return msOrderIncomeMapper.deleteMsOrderIncomeByOrderIncomeIds(Convert.toStrArray(orderIncomeIds));
    }

    /**
     * 删除妙手虾皮订单收入明细信息
     * 
     * @param orderIncomeId 妙手虾皮订单收入明细主键
     * @return 结果
     */
    @Override
    public int deleteMsOrderIncomeByOrderIncomeId(Long orderIncomeId)
    {
        return msOrderIncomeMapper.deleteMsOrderIncomeByOrderIncomeId(orderIncomeId);
    }
}
